﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000239 RID: 569
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueGetInfo : IMessage<ChessRogueGetInfo>, IMessage, IEquatable<ChessRogueGetInfo>, IDeepCloneable<ChessRogueGetInfo>, IBufferMessage
	{
		// Token: 0x1700078E RID: 1934
		// (get) Token: 0x060019BA RID: 6586 RVA: 0x0004A6BE File Offset: 0x000488BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueGetInfo> Parser
		{
			get
			{
				return ChessRogueGetInfo._parser;
			}
		}

		// Token: 0x1700078F RID: 1935
		// (get) Token: 0x060019BB RID: 6587 RVA: 0x0004A6C5 File Offset: 0x000488C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueGetInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000790 RID: 1936
		// (get) Token: 0x060019BC RID: 6588 RVA: 0x0004A6D7 File Offset: 0x000488D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueGetInfo.Descriptor;
			}
		}

		// Token: 0x060019BD RID: 6589 RVA: 0x0004A6DE File Offset: 0x000488DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGetInfo()
		{
		}

		// Token: 0x060019BE RID: 6590 RVA: 0x0004A6FC File Offset: 0x000488FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGetInfo(ChessRogueGetInfo other) : this()
		{
			this.chessAeonInfo_ = ((other.chessAeonInfo_ != null) ? other.chessAeonInfo_.Clone() : null);
			this.rogueDifficultyInfo_ = ((other.rogueDifficultyInfo_ != null) ? other.rogueDifficultyInfo_.Clone() : null);
			this.talentInfoList_ = ((other.talentInfoList_ != null) ? other.talentInfoList_.Clone() : null);
			this.exploredAreaIdList_ = other.exploredAreaIdList_.Clone();
			this.queryDiceInfo_ = ((other.queryDiceInfo_ != null) ? other.queryDiceInfo_.Clone() : null);
			this.areaIdList_ = other.areaIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060019BF RID: 6591 RVA: 0x0004A7B2 File Offset: 0x000489B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGetInfo Clone()
		{
			return new ChessRogueGetInfo(this);
		}

		// Token: 0x17000791 RID: 1937
		// (get) Token: 0x060019C0 RID: 6592 RVA: 0x0004A7BA File Offset: 0x000489BA
		// (set) Token: 0x060019C1 RID: 6593 RVA: 0x0004A7C2 File Offset: 0x000489C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryAeonInfo ChessAeonInfo
		{
			get
			{
				return this.chessAeonInfo_;
			}
			set
			{
				this.chessAeonInfo_ = value;
			}
		}

		// Token: 0x17000792 RID: 1938
		// (get) Token: 0x060019C2 RID: 6594 RVA: 0x0004A7CB File Offset: 0x000489CB
		// (set) Token: 0x060019C3 RID: 6595 RVA: 0x0004A7D3 File Offset: 0x000489D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryDiffcultyInfo RogueDifficultyInfo
		{
			get
			{
				return this.rogueDifficultyInfo_;
			}
			set
			{
				this.rogueDifficultyInfo_ = value;
			}
		}

		// Token: 0x17000793 RID: 1939
		// (get) Token: 0x060019C4 RID: 6596 RVA: 0x0004A7DC File Offset: 0x000489DC
		// (set) Token: 0x060019C5 RID: 6597 RVA: 0x0004A7E4 File Offset: 0x000489E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueTalentInfo TalentInfoList
		{
			get
			{
				return this.talentInfoList_;
			}
			set
			{
				this.talentInfoList_ = value;
			}
		}

		// Token: 0x17000794 RID: 1940
		// (get) Token: 0x060019C6 RID: 6598 RVA: 0x0004A7ED File Offset: 0x000489ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> ExploredAreaIdList
		{
			get
			{
				return this.exploredAreaIdList_;
			}
		}

		// Token: 0x17000795 RID: 1941
		// (get) Token: 0x060019C7 RID: 6599 RVA: 0x0004A7F5 File Offset: 0x000489F5
		// (set) Token: 0x060019C8 RID: 6600 RVA: 0x0004A7FD File Offset: 0x000489FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryDiceInfo QueryDiceInfo
		{
			get
			{
				return this.queryDiceInfo_;
			}
			set
			{
				this.queryDiceInfo_ = value;
			}
		}

		// Token: 0x17000796 RID: 1942
		// (get) Token: 0x060019C9 RID: 6601 RVA: 0x0004A806 File Offset: 0x00048A06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AreaIdList
		{
			get
			{
				return this.areaIdList_;
			}
		}

		// Token: 0x060019CA RID: 6602 RVA: 0x0004A80E File Offset: 0x00048A0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueGetInfo);
		}

		// Token: 0x060019CB RID: 6603 RVA: 0x0004A81C File Offset: 0x00048A1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueGetInfo other)
		{
			return other != null && (other == this || (object.Equals(this.ChessAeonInfo, other.ChessAeonInfo) && object.Equals(this.RogueDifficultyInfo, other.RogueDifficultyInfo) && object.Equals(this.TalentInfoList, other.TalentInfoList) && this.exploredAreaIdList_.Equals(other.exploredAreaIdList_) && object.Equals(this.QueryDiceInfo, other.QueryDiceInfo) && this.areaIdList_.Equals(other.areaIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060019CC RID: 6604 RVA: 0x0004A8C4 File Offset: 0x00048AC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.chessAeonInfo_ != null)
			{
				num ^= this.ChessAeonInfo.GetHashCode();
			}
			if (this.rogueDifficultyInfo_ != null)
			{
				num ^= this.RogueDifficultyInfo.GetHashCode();
			}
			if (this.talentInfoList_ != null)
			{
				num ^= this.TalentInfoList.GetHashCode();
			}
			num ^= this.exploredAreaIdList_.GetHashCode();
			if (this.queryDiceInfo_ != null)
			{
				num ^= this.QueryDiceInfo.GetHashCode();
			}
			num ^= this.areaIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060019CD RID: 6605 RVA: 0x0004A95E File Offset: 0x00048B5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060019CE RID: 6606 RVA: 0x0004A966 File Offset: 0x00048B66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060019CF RID: 6607 RVA: 0x0004A970 File Offset: 0x00048B70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.exploredAreaIdList_.WriteTo(ref output, ChessRogueGetInfo._repeated_exploredAreaIdList_codec);
			this.areaIdList_.WriteTo(ref output, ChessRogueGetInfo._repeated_areaIdList_codec);
			if (this.rogueDifficultyInfo_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.RogueDifficultyInfo);
			}
			if (this.talentInfoList_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.TalentInfoList);
			}
			if (this.chessAeonInfo_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.ChessAeonInfo);
			}
			if (this.queryDiceInfo_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.QueryDiceInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060019D0 RID: 6608 RVA: 0x0004AA24 File Offset: 0x00048C24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.chessAeonInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ChessAeonInfo);
			}
			if (this.rogueDifficultyInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueDifficultyInfo);
			}
			if (this.talentInfoList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TalentInfoList);
			}
			num += this.exploredAreaIdList_.CalculateSize(ChessRogueGetInfo._repeated_exploredAreaIdList_codec);
			if (this.queryDiceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.QueryDiceInfo);
			}
			num += this.areaIdList_.CalculateSize(ChessRogueGetInfo._repeated_areaIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060019D1 RID: 6609 RVA: 0x0004AAD0 File Offset: 0x00048CD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueGetInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.chessAeonInfo_ != null)
			{
				if (this.chessAeonInfo_ == null)
				{
					this.ChessAeonInfo = new ChessRogueQueryAeonInfo();
				}
				this.ChessAeonInfo.MergeFrom(other.ChessAeonInfo);
			}
			if (other.rogueDifficultyInfo_ != null)
			{
				if (this.rogueDifficultyInfo_ == null)
				{
					this.RogueDifficultyInfo = new ChessRogueQueryDiffcultyInfo();
				}
				this.RogueDifficultyInfo.MergeFrom(other.RogueDifficultyInfo);
			}
			if (other.talentInfoList_ != null)
			{
				if (this.talentInfoList_ == null)
				{
					this.TalentInfoList = new ChessRogueTalentInfo();
				}
				this.TalentInfoList.MergeFrom(other.TalentInfoList);
			}
			this.exploredAreaIdList_.Add(other.exploredAreaIdList_);
			if (other.queryDiceInfo_ != null)
			{
				if (this.queryDiceInfo_ == null)
				{
					this.QueryDiceInfo = new ChessRogueQueryDiceInfo();
				}
				this.QueryDiceInfo.MergeFrom(other.QueryDiceInfo);
			}
			this.areaIdList_.Add(other.areaIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060019D2 RID: 6610 RVA: 0x0004ABCA File Offset: 0x00048DCA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060019D3 RID: 6611 RVA: 0x0004ABD4 File Offset: 0x00048DD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 66U)
				{
					if (num <= 10U)
					{
						if (num == 8U || num == 10U)
						{
							this.exploredAreaIdList_.AddEntriesFrom(ref input, ChessRogueGetInfo._repeated_exploredAreaIdList_codec);
							continue;
						}
					}
					else if (num == 64U || num == 66U)
					{
						this.areaIdList_.AddEntriesFrom(ref input, ChessRogueGetInfo._repeated_areaIdList_codec);
						continue;
					}
				}
				else if (num <= 82U)
				{
					if (num == 74U)
					{
						if (this.rogueDifficultyInfo_ == null)
						{
							this.RogueDifficultyInfo = new ChessRogueQueryDiffcultyInfo();
						}
						input.ReadMessage(this.RogueDifficultyInfo);
						continue;
					}
					if (num == 82U)
					{
						if (this.talentInfoList_ == null)
						{
							this.TalentInfoList = new ChessRogueTalentInfo();
						}
						input.ReadMessage(this.TalentInfoList);
						continue;
					}
				}
				else
				{
					if (num == 90U)
					{
						if (this.chessAeonInfo_ == null)
						{
							this.ChessAeonInfo = new ChessRogueQueryAeonInfo();
						}
						input.ReadMessage(this.ChessAeonInfo);
						continue;
					}
					if (num == 114U)
					{
						if (this.queryDiceInfo_ == null)
						{
							this.QueryDiceInfo = new ChessRogueQueryDiceInfo();
						}
						input.ReadMessage(this.QueryDiceInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000AD2 RID: 2770
		private static readonly MessageParser<ChessRogueGetInfo> _parser = new MessageParser<ChessRogueGetInfo>(() => new ChessRogueGetInfo());

		// Token: 0x04000AD3 RID: 2771
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000AD4 RID: 2772
		public const int ChessAeonInfoFieldNumber = 11;

		// Token: 0x04000AD5 RID: 2773
		private ChessRogueQueryAeonInfo chessAeonInfo_;

		// Token: 0x04000AD6 RID: 2774
		public const int RogueDifficultyInfoFieldNumber = 9;

		// Token: 0x04000AD7 RID: 2775
		private ChessRogueQueryDiffcultyInfo rogueDifficultyInfo_;

		// Token: 0x04000AD8 RID: 2776
		public const int TalentInfoListFieldNumber = 10;

		// Token: 0x04000AD9 RID: 2777
		private ChessRogueTalentInfo talentInfoList_;

		// Token: 0x04000ADA RID: 2778
		public const int ExploredAreaIdListFieldNumber = 1;

		// Token: 0x04000ADB RID: 2779
		private static readonly FieldCodec<uint> _repeated_exploredAreaIdList_codec = FieldCodec.ForUInt32(10U);

		// Token: 0x04000ADC RID: 2780
		private readonly RepeatedField<uint> exploredAreaIdList_ = new RepeatedField<uint>();

		// Token: 0x04000ADD RID: 2781
		public const int QueryDiceInfoFieldNumber = 14;

		// Token: 0x04000ADE RID: 2782
		private ChessRogueQueryDiceInfo queryDiceInfo_;

		// Token: 0x04000ADF RID: 2783
		public const int AreaIdListFieldNumber = 8;

		// Token: 0x04000AE0 RID: 2784
		private static readonly FieldCodec<uint> _repeated_areaIdList_codec = FieldCodec.ForUInt32(66U);

		// Token: 0x04000AE1 RID: 2785
		private readonly RepeatedField<uint> areaIdList_ = new RepeatedField<uint>();
	}
}
